$(document).ready(function() {
	$("body").fadeIn();
	//处理滚动事件
	$(document).keydown(function(event) {
		//32空格 13回车 40下 38上 37左 39右
		var curTop = $(".mCSB_dragger").position().top;
		if (event.keyCode == 39) {
			$(".mCustomScrollbar").mCustomScrollbar("scrollTo", "bottom");
		} else if (event.keyCode == 37) {
			$(".mCustomScrollbar").mCustomScrollbar("scrollTo", "top");
		} else if (event.keyCode == 32) {
			$(".mCustomScrollbar").mCustomScrollbar("scrollTo", curTop + 100, {
				moveDragger:true
			});
		} else if (event.keyCode == 40) {
			$(".mCustomScrollbar").mCustomScrollbar("scrollTo", curTop + 50, {
				moveDragger:true
			});
		} else if (event.keyCode == 38) {
			$(".mCustomScrollbar").mCustomScrollbar("scrollTo", curTop - 50, {
				moveDragger:true
			});
		}
	}); 
});